package com.gg.admin.user.contorller;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;

import com.gg.admin.user.service.AdminUserService;
import com.gg.entity.User;

import helpers.baseservlet.BaseServlet;

@WebServlet("/admin/ShowUserByUidServlet")
public class ShowUserByUidServlet extends BaseServlet{
	@Autowired
	private AdminUserService adminUserService;
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		String uid=request.getParameter("uid");
		User u=adminUserService.showUserByUid(uid);
		request.getSession().setAttribute("thisuser", u);
		response.sendRedirect("/fruits/BSindex3.jsp");
	}


}
